package com.genesis.mall.service;

import com.genesis.mall.dto.PageDto;
import com.genesis.mall.dto.ProductDetailVO;
import com.genesis.mall.entity.PmsProduct;
import com.baomidou.mybatisplus.extension.service.IService;
import com.genesis.mall.entity.PmsProductCategory;

import java.util.List;

/**
 * <p>
 * 商品信息 服务类
 * </p>
 *
 * @author author
 * @since 2022-08-01
 */
public interface IPmsProductService extends IService<PmsProduct> {



    ProductDetailVO getProductDetail(Long id);

    PageDto<PmsProduct> search(String keyword, Integer pageNum, Integer pageSize, Integer sort,
                               Long brandId,Long productCategoryId);

    PageDto<PmsProduct> pageList(Long brandId, Integer pageNum, Integer pageSize);

    List<PmsProductCategory> groupBy(Long parentId);
}
